package com.qingke.oms.pojo;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table(name="shipment_status")
public class ShipmentStatus {
	@Id
	@Column(name="id")
	private int id;
	
	@Column(name="status")
	private String status;
	
	@OneToMany(mappedBy="shipmentStatus",fetch=FetchType.LAZY)
	private Set<ShipmentRecord> shipmentRecords;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Set<ShipmentRecord> getShelfRecords() {
		return shipmentRecords;
	}
	public void setShelfRecords(Set<ShipmentRecord> shelfRecords) {
		this.shipmentRecords = shelfRecords;
	}
	@Override
	public String toString() {
		return "ShipmentStatus id=" + id + ", status=" + status ;
	}
	
}
